<?php
/**
 * Created by PhpStorm.
 * User: kai.yang
 * Date: 2019-01-04
 * Time: 21:41
 */

namespace Model;

class LoginModel
{
    private $loginNmae;

    private $role;

    private $deploy_name;

    /**
     * LoginModel constructor.
     * @param $loginNmae
     * @param $role
     */
    public function __construct($loginNmae, $role,$deploy_name)
    {
        $this->loginNmae = $loginNmae;
        $this->role = $role;
        $this->deploy_name=$deploy_name;
    }


    /**
     * @return mixed
     */
    public function getLoginNmae()
    {
        return $this->loginNmae;
    }

    /**
     * @param mixed $loginNmae
     */
    public function setLoginNmae($loginNmae)
    {
        $this->loginNmae = $loginNmae;
    }

    /**
     * @return mixed
     */
    public function getRole()
    {
        return $this->role;
    }

    /**
     * @param mixed $role
     */
    public function setRole($role)
    {
        $this->role = $role;
    }

    /**
     * @return mixed
     */
    public function getDeployName()
    {
        return $this->deploy_name;
    }

    /**
     * @param mixed $deploy_name
     */
    public function setDeployName($deploy_name)
    {
        $this->deploy_name = $deploy_name;
    }



    public function __toString()
    {
        return "LoginMode=loginName:".$this->getLoginNmae().";role:".$this->getRole().";deploy_name:".$this->getDeployName();


    }



}